package com.job.structureType.decorator;

/**
 * @Author 王博
 * @DateTime 2025-06-12 19:08
 */
public class Egg extends FastFoodDecorator{
    public Egg(FastFood fastFood) {
        super(fastFood, 1, "鸡蛋");
    }
    @Override
    public Integer cost() {
        return super.getPrice() + this.getFastFood().cost();
    }

    @Override
    public String getDesc() {
        return super.getDesc() + this.getFastFood().getDesc();
    }
}
